import request from "@/utils/request";

// 获取字段列表
export function getList (data) {
  return request({
    url: "/api/course/TemsCourse/getList",
    method: "post",
    data,
  });
}

export function deleteList (data) {
  return request({
    url: `/api/course/TemsCourse/${data}`,
    method: "delete",
  });
}

export function getTemsCourseDetail (data) {
  return request({
    url: `/api/course/TemsCourse/${data}`,
    method: "get",
  });
}

// 新增
export function addCourse (data) {
  return request({
    url: "/api/course/TemsCourse",
    method: "put",
    data,
  });
}

// 获取专题管理列表
export function getZTlist (data) {
  return request({
    url: "/api/course/TemsSubject/getList",
    method: "post",
    data,
  });
}

export function deleteZTlist (data) {
  return request({
    url: `/api/course/TemsSubject/${data}`,
    method: "delete",
  });
}

export function addTems (data) {
  return request({

    url: "/api/course/TemsSubject",
    method: "post",
    data,
  });
}
